how to fix error externally-managed-environment